-- GENERATED SPELL FOR [Flamekin Rager] --


function spell0_9779(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(15716,pUnit)
pUnit:RegisterEvent('Sorts_9779', 559, 1)
end

function Sorts_9779(pUnit, Event)
local choix_sorts_9779 = math.random(0, 0)
if choix_sorts_9779 == 0 then
pUnit:RegisterEvent('spell0_9779', 1, 1)
end
end

function mob9779_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9779', math.random(1500, 3000), 1)
end

function mob9779_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9779_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9779_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9779, 1, 'mob9779_Action')
RegisterUnitEvent(9779, 2, 'mob9779_Leave')
RegisterUnitEvent(9779, 3, 'mob9779_Kill')
RegisterUnitEvent(9779, 4, 'mob9779_Die')
